package me.shibor.study.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class HelloExpJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {

		System.out.println("hello!");
		try {
			System.out.println("sleep start");
			Thread.sleep(1000 * 3);
			System.out.println("sleep end");
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		throw new JobExecutionException("HelloExp exception!");
	}

}
